/**
 * Created by Administrator on 2017/5/27.
 * Copyright 2017-2018 汉威.智慧环保事业部 Limited.
 * All rights reserved.
 */
package com.hw.one.collect.tasks.fairsense.data;

import com.hw.one.collect.data.DataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FairSenseDataService extends DataService{
    private Logger log = LoggerFactory.getLogger(FairSenseDataService.class);
    @Resource
    private MongoTemplate mongoTemplateStandardSiteData;

    @Override
    public void insert(Object data) throws Exception {
        mongoTemplateStandardSiteData.insert(getBasicDBList(data),getScHourSCollect());
        log.info("泛测小时数据入库成功");
    }

}
